"""
主页内容

"""
from appium import webdriver
from pom.basedriver import BaseDriver
class MainPage(BaseDriver):

    def open_troggle_page(self):
        """
        打开抽屉页
        :return:
        """
        android_selector = self.android_uiautomator+'resourceId("org.cnodejs.android.md:id/toolbar").childSelector(new UiSelector().className("android.widget.ImageButton"))'
        self.driver.find_element_by_android_uiautomator(android_selector).click()


    def click_create_topic(self):
        """
        点击发布话题
        :return:
        """
        android_selector=self.android_uiautomator + 'resourceId("org.cnodejs.android.md:id/fab_create_topic")'
        self.driver.find_element_by_android_uiautomator(android_selector).click()


if __name__ == '__main__':
    main = MainPage()
    # main.click_create_topic()
    main.open_troggle_page()